package evance.user.war.controller.product;

import java.util.Locale;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value={"/product"})
public class ProductController {
	private static Logger log = Logger.getLogger(ProductController.class);

	@RequestMapping(method = RequestMethod.GET)
	public String product(Locale locale, Model model) {
		log.debug("Welcome product ! the client locale is " + locale.toString() + "; " + locale.getDisplayName());
		return "product";
	}

	@RequestMapping(value = "/camera", method = RequestMethod.GET)
	public String cammera(Locale locale, Model model) {
		log.debug("Welcome camera ! the client locale is " + locale.toString() + "; " + locale.getDisplayName());
		return "cammera";
	}

	@RequestMapping(value = "/laptop", method = RequestMethod.GET)
	public String laptop(Locale locale, Model model) {
		log.debug("Welcome laptop ! the client locale is " + locale.toString() + "; " + locale.getDisplayName());
		return "laptop";
	}

	@RequestMapping(value = "/desktop", method = RequestMethod.GET)
	public String desktop(Locale locale, Model model) {
		log.debug("Welcome desktop ! the client locale is " + locale.toString() + "; " + locale.getDisplayName());
		return "desktop";
	}
}
